﻿<Window x:Class="ResourceBlender_Express.WinInstaller"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:loc="clr-namespace:ResourceBlender_Express"
    xmlns:validators="clr-namespace:ResourceBlender_Express.Validators"
    xmlns:props="clr-namespace:ResourceBlender_Express.Properties"
    loc:WindowService.EscapeClosesWindow="True" WindowStartupLocation="CenterOwner" 
    Title="Installation Wizard"
    MinHeight="300" MinWidth="350"
    Height="350" Width="350"
    Style="{StaticResource {x:Type Window}}" Icon="/ResourceBlender-Express;component/Resources/images/resourceblender.ico">
    <Window.Resources>
        <ResourceDictionary>
            <props:Settings x:Key="settings" />
        </ResourceDictionary>
    </Window.Resources>
    <DockPanel Margin="6" LastChildFill="true">
        <Grid DockPanel.Dock="Bottom">
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="Auto" />
                <ColumnDefinition Width="*" />
                <ColumnDefinition Width="Auto" />
            </Grid.ColumnDefinitions>
            <Button Grid.Column="0" x:Name="btnPrevious" MinWidth="70" Click="btnPrevious_Click" Visibility="Hidden">Previous</Button>
            <Button Grid.Column="2" DockPanel.Dock="Right" x:Name="btnNext" MinWidth="70" IsDefault="True" Click="btnNext_Click">Next</Button>
        </Grid>
        <TabControl DockPanel.Dock="Top" x:Name="tabWizard" DataContext="{StaticResource settings}" MinHeight="280" Background="Transparent" BorderThickness="0" SelectedIndex="0">
            <TabItem Height="0">
                <StackPanel>
                    <TextBlock Style="{StaticResource HeadingFont}">First Time Installation</TextBlock>
                    <TextBlock TextWrapping="Wrap" Style="{StaticResource PaddedTextBlock}">This looks like the first time you've run ResourceBlender Express.</TextBlock>
                    <TextBlock TextWrapping="Wrap" Style="{StaticResource PaddedTextBlock}">This wizard will allow you to set up a database.</TextBlock>
                </StackPanel>
            </TabItem>
            <TabItem x:Name="dbTab" Height="0">
                <!-- DatabaseSelector inserted from code-behind -->
            </TabItem>
            <TabItem Height="0">
                <StackPanel>
                    <TextBlock Style="{StaticResource HeadingFont}">Finished</TextBlock>
                    <TextBlock TextWrapping="Wrap" Style="{StaticResource PaddedTextBlock}">Database was initialized. There's a quickstart guide in the <Hyperlink NavigateUri="#" RequestNavigate="lnkHelpFile_RequestNavigate">help file</Hyperlink> and online at <Hyperlink NavigateUri="http://wiki.lime49.com/index.php?title=ResourceBlender_Express" RequestNavigate="lnkWiki_RequestNavigate">the wiki</Hyperlink> which you should read before getting started.</TextBlock>
                </StackPanel>
            </TabItem>
        </TabControl>
        
    </DockPanel>
</Window>
